package com.example.mychatroom.a_utils;

import lombok.Data;

@Data
public class ResponseBodyMessage<T> {
    //状态码
    private int status;
    //返回的信息
    private String Message;
    //返回的数据
    private T data;
    //有参构造方法
    public ResponseBodyMessage(int status,String message,T data){
        this.status = status;
        this.Message = message;
        this.data = data;
    }
    //无参构造方法
    public ResponseBodyMessage(){

    }

    public T getData() {
        return data;
    }

}